package ${package.Entity};

import ${package.Entity?remove_ending(".converter")}.po.${entity?remove_ending("Converter")}PO;
import ${package.Entity?remove_ending(".converter")}.vo.Get${entity?remove_ending("Converter")}ListVO;
import ${package.Entity?remove_ending(".converter")}.dto.Save${entity?remove_ending("Converter")}DTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;
/**
 * <p>
 * ${table.comment!} 转换类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Mapper
public interface ${entity} {

    ${entity} INSTANCE = Mappers.getMapper(${entity}.class);

    /**
     * 转换器 List<po> => List<vo>
     *
     * @param pos ${table.comment!}实体对象集合
     * @return vo对象集合
     */
    List<Get${entity?remove_ending("Converter")}ListVO> get${entity?remove_ending("Converter")}ListVos(List<${entity?remove_ending("Converter")}PO> pos);

    /**
     * 转换器 dto => po
     *
     * @param dto 修改对象dto
     * @return po 对象
     */
    ${entity?remove_ending("Converter")}PO get${entity?remove_ending("Converter")}Po(Save${entity?remove_ending("Converter")}DTO dto);


    /**
     * 转换器 List<dto> => List<po>
     *
     * @param dto 修改对象List<dto>
     * @return po 对象
     */
    List<${entity?remove_ending("Converter")}PO> save${entity?remove_ending("Converter")}Pos(List<Save${entity?remove_ending("Converter")}DTO> dto);


}